<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>Document</title>
	</head>

	<body>
		<pre>

      动态属性绑定 v-bind 

        1、v-bind 后面跟上 ":" , ":" 后面跟上的是属性

        2、v-bind 简写方式就是一个 ":"

    </pre>

		<div id="app">
			<a v-bind:href="url">传智播客</a>
			<a :href="url">传智播客</a>
			<!-- <img v-bind:src="" v-bind:alt=""> -->

			<button @click="handle">切换地址</button>
		</div>

		<script src="./scripts/vue.js"></script>
		<script>
			var vm = new Vue({
				el: '#app',
				data: {
					url: 'http://www.itcast.cn',
				},
				methods: {
					handle() {
						this.url = 'http://pic.baidu.com'
					},
				},
			})
		</script>
	</body>
</html>
